package com.neuq.animaladoption.anno;

import com.neuq.animaladoption.validation.UserIdentityValidation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Documented
@Target({ ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = {UserIdentityValidation.class})
public @interface UserIdentity {
    String message() default "{userIdentity参数的值只能是管理员，收容所，或者用户}";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
